package com.bdqn.service.mgr;

import com.bdqn.mapper.mgr.BackendUserMapper;
import com.bdqn.pojo.BackendUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BackendUserServiceImpl implements BackendUserService{
    @Resource
    private BackendUserMapper backendUserMapper;
    @Override
    public BackendUser login(String userCode, String userPassword) {
        BackendUser backendUser = backendUserMapper.login(userCode,userPassword);
        if (backendUser != null){
            return backendUser;
        }
        return null;
    }
}
